#coding:utf8
import os
f = os.listdir('.')
out = []
for i in f:
    if i.find('.Mesh') != -1:
        out.append(i)

parDir = '/Users/liyong/Desktop/'
print out
dat = ''

for i in out:
    dat += 'FILE:%s\n' % (os.getcwd().replace(parDir, '')+"/"+i )

print dat
f = open('light.dat', 'w')
f.write(dat)
f.close()

